/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.xy.biz.ts.domain.req.SaveExaminationRecordRequest;
import com.xy.biz.ts.domain.req.examinationRecord.GetExaminationRecordByTrainIdRequest;
import com.xy.biz.ts.domain.resp.GetExaminationRecordResponse;
import com.xy.biz.ts.domain.resp.GetTrainByClassifyResponse;
import com.xy.lang.domain.Result;
import com.xy.biz.ts.domain.bo.ExaminationRecordBO;
import com.xy.biz.ts.domain.query.ExaminationRecordQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-3-10
 */
public interface ExaminationRecordService {

	/**
	 * 保存
	 *
	 * @param
	 */
	Result<?> saveExaminationRecord(SaveExaminationRecordRequest query);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllExaminationRecord(Collection<ExaminationRecordBO> collection);

	/**
	 * 更新
	 *
	 * @param examinationRecordBO
	 */
	Result<?> updateExaminationRecord(ExaminationRecordBO examinationRecordBO);

	/**
	 * 删除
	 *
	 * @param examinationRecordId
	 */
	Result<?> deleteExaminationRecord(Long examinationRecordId);

	/**
	 * 查找一个
	 *
	 * @param examinationRecordId
	 * @return
	 */
	Result<?> getExaminationRecord(Long examinationRecordId);

	/**
	 * 根据TrainId查找
	 *
	 * @param request
	 * @return
	 */
	List<GetExaminationRecordResponse> listExaminationRecordByTrainId(GetExaminationRecordByTrainIdRequest request);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ExaminationRecordBO> listExaminationRecordById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ExaminationRecordBO> listExaminationRecord(ExaminationRecordQuery query);


	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<GetExaminationRecordResponse> listExaminationRecord1(ExaminationRecordQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countExaminationRecord(ExaminationRecordQuery query);

	/**
	 * 批改试卷
	 * @param request
	 * @return
	 */
    Result<?> correctExaminationRecord(SaveExaminationRecordRequest request);
}
